package com.guojian.common.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class PbeanInvacationHandler implements InvocationHandler {

	private Object target;

	public PbeanInvacationHandler(Object target) {
		super();
		this.target = target;
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

		System.out.println("进入代理方法");
		return method.invoke(target, args);

	}

}
